package com.cskaoyan.demo7.bean.resp;

import com.cskaoyan.demo7.bean.model.MarketGoods;
import com.cskaoyan.demo7.bean.model.MarketGoodsSpecification;
import com.cskaoyan.demo7.bean.model.MarketIssue;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Description：
 * @Author：BLUEBLANK
 * @Date：2024/4/23 21:23
 */


@NoArgsConstructor
@Data
public class TestVo {

    private List<SpecificationListDTO> specificationList;
    private List<MarketIssue> issue;
    private Integer userHasCollect;
    private String shareImage;
    private CommentDTO comment;
    private Boolean share;
    private List<AttributeDTO> attribute;
    private BrandDTO brand;
    private List<ProductListDTO> productList;
    private MarketGoods info;

    @NoArgsConstructor
    @Data
    public static class CommentDTO {
        private List<DataDTO> data;
        private Integer count;

        @NoArgsConstructor
        @Data
        public static class DataDTO {
            private String addTime;
            private List<String> picList;
            private String adminContent;
            private String nickname;
            private Integer id;
            private String avatar;
            private String content;
        }
    }

    @NoArgsConstructor
    @Data
    public static class BrandDTO {
        private Integer id;
        private String name;
        private String desc;
        private String picUrl;
        private Integer sortOrder;
        private Integer floorPrice;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }



    @NoArgsConstructor
    @Data
    public static class SpecificationListDTO {
        private String name;
        private List<MarketGoodsSpecification> valueList;

    }


    @NoArgsConstructor
    @Data
    public static class AttributeDTO {
        private Integer id;
        private Integer goodsId;
        private String attribute;
        private String value;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class ProductListDTO {
        private Integer id;
        private Integer goodsId;
        private List<String> specifications;
        private Integer price;
        private Integer number;
        private String url;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }
}
